import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useBdcStore = defineStore(
  'breadcrumb',
  () => {
    const current_router = ref(['/home'])
    const setBreadcrumb = path => {
      current_router.value = path
    }
    return { current_router, setBreadcrumb }
  },
  {
    persist: {
      key: 'breadcrumb',
      storage: localStorage
    }
  }
)
